# coding: utf-8
# __author__ = 'fengzhao'

# csrf config
CSRF_ENABLED = True
SECRET_KEY = 'jiaxing'

# db config
DB_HOST = "127.0.0.1"
DB_USER = "root"
DB_PASSWORD = ""
DB_NAME = "cabbage"
SQLALCHEMY_DATABASE_URI = "mysql://%s:%s@%s/%s" % (DB_USER, DB_PASSWORD, DB_HOST, DB_NAME)

# upload config
UPLOAD_FOLDER = ('C:/workspace/codes/Cabbage/app/static/upload', 'H:/Workspace/Cabbage/app/static/upload')
MOVIE_COVER_FOLDER = ('C:/workspace/codes/Cabbage/app/static/movie_cover', 'H:/Workspace/Cabbage/app/static/movie_cover')
ALLOWED_EXTENSIONS = set([ 'png', 'jpg', 'jpeg', 'gif'])
MAX_CONTENT_LENGTH = 4 * 1024 * 1024  # Max Image Size is 4MB

CELERY_BROKER_URL = "redis://localhost:6379/"
CELERY_RESULT_BACKEND = "redis://localhost:6379/"